import { Log } from 'ng2-logger';
/**
 * 日志注解工具类
 * 
 * [ng2-logger地址](https://github.com/darekf77/ng2-logger)
 * 
 * @export
 * @param {string} [name] 
 * @returns 
 */
export function Logger(name?: string) {
  return function (target: any, propertyKey: string) {
    target[propertyKey] = Log.create(name || target.constructor.name);
  }
}